package cn.kgc.spring.service;

import cn.kgc.spring.entity.User;

/**
 * @author: mosin
 * @version: v1.0  2022/10/13
 */
public class UserServiceImpl implements UserService {
    @Override
    public Integer add(User user) {

        System.out.println("UserDao中的add方法被调用"+user);
        //int i = 1/0;
        return 1;
    }

    @Override
    public Integer delete(Integer id) {

        System.out.println("UserDao中的delete方法被调用"+id);
        return 1;
    }
}
